<?php
$baseUrl = Yii::app()->baseUrl; 
$cs = Yii::app()->getClientScript();
$cs->registerCssFile($baseUrl.'/css/jquery-ui.css');
$cs->registerCssFile($baseUrl.'/css/report.css');
$cs->registerScriptFile($baseUrl.'/js/jquery.min.js');
$cs->registerScriptFile($baseUrl.'/js/jquery-ui.js');
$cs->registerScriptFile($baseUrl.'/js/reports.js');

?>

<div id="wrapper">
<div id="sideNav_wrapper">
<div id="sideNav">
<div class="sideNavFloatContainer">
<div class="section filterContainer">
<form id="filter" class="form">
<div style="display: none;" class="button neutral filterReset"><a
	href="#" class="reset">Reset</a></div>
<fieldset><legend>Filters</legend>
<ol>
	<li><input name="reportname_email" id="searchbox" class="qtip inputLarge"
		placeholder="Report name or email" type="text"> <span
		style="display: none;" class="filter_clear"></span></li>
	<li>
	<ol>
		<li><label class="dateField">From</label> <input
			value="<?php echo date("Y-m-d",strtotime("-1 year"));?>" name="startDate" id="startDate"
			class="required calendar semwal_dtpicker" type="text"></li>
		<li><label class="dateField">To</label> <input value="<?php echo date("Y-m-d");?>"
			name="endDate" id="endDate" class="required calendar semwal_dtpicker"
			type="text"></li>
	</ol>
	</li>
	<li>
	<select id="report_type_search" name="report_type_search">
	    <option value="All">All Report</option>
	    <option value="expense">Expenses</option>
	    <option value="Invoice">Invoices</option>
	    <option value="Standard Report">Standard report</option>
	</select>
	</li>
	<li>
	<select id="submitter_search">
	   <option value="AllSubmitter">All Submitters</option>
	   <option value="JustMe">Just Me</option>
	</select>
	</li>
	<li id="reports_filter_policies_container"><select
		id="reports_filter_policies" class="qtip">
		<option selected="selected" value="-1">All Policies</option>
	</select></li>
	<li>
	 <select id="reportStatus">
	   <option value="All">All status</option>	
	   <option value="Open">Open</option>
	   <option value="Processing">Processing</option>
	   <option value="Approved">Approved</option>
	   <option value="Reimbursed">Reimbursed</option>
	   <option value="Closed">Closed</option>
   
	</select>
	</li>
</ol>
</fieldset>
<div class="clear"></div>
<br/>
<div class="button">
<a id="btn_report_search">Search</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="#" class="reset" id="btn_reset">Reset</a></div>
<img src="/expense/images/spinner_2x.gif" alt="uploading" id="report_search_spinner" class="hide">
<div class="message_hint hidden" id="filer_check_message">
<p> To Date must to be greater than From Date</p>
</div>
</form>
</div>

<div class="section last" id="howDoI">
<h3>How do I Expense System?</h3>
<p></p>
<ul>
	<li>How do I <a href="#reports_create" target="_blank">create
	a report?</a></li>
	<li>How do I <a href="#direct_deposit" target="_blank">get
	reimbursed?</a></li>
</ul>
<p></p>
<a href="#">More help...</a></div>
</div>
</div>
</div>

<div id="content_wrapper">

<div id="buttons_container_list" class="buttons_container">

<div class="button-split">
<div id="new_report" class="button add qtip js_reports_create"><a>New Report</a></div>

<div style="display: block;" id="button_createReportSelect"
	class="add button qtip hidden"><a class="carrot"></a></div>


</div>

<div style="display: none;" id="button_bulkButton" class="button qtip"><a
	class="dropdown">Bulk Actions</a></div>
<div id="button_exportButton" class="button qtip"><a
	class="dropdown">Export to Exel</a></div>
<div class="button button_rebill add"><a>Rebill Expenses</a></div>
<div id="button_deleteReports" class="button delete qtip"><a
	class="iconButton"></a></div>
</div>
<div id="buttons_container_list_add_report" class="buttons_container hidden">
<div class="button qtip add" id="save_report"><a id="save">Save</a></div>
<div class="button qtip add"><a id="submit">Submit</a></div>
<div id="button_exportButton" class="button qtip add"><a>Export to Exel</a></div>
<div class="button qtip add"><a id="close">Close</a></div>
</div>
<input type="hidden" id="default_currency" value="<?php echo $defaultCurrency['CurrencyName'];?>">
<input type="hidden" id="default_exchange_rate" value="<?php echo $defaultCurrency['ExchangeRate'];?>">
<div id="reportsContainer" class="tableContainer">
<?php $this->renderPartial('search',array(
'rows'=>$rows,
'page'=>$page,
'limit'=>$limit,
'totalItem'=>$totalItem
           
));?>
</div>
<!-- New Report -->

<!-- End New Report --> <!-- View Report -->
<div id="view_report_body" style="display: none;">
<div class="" id="reportpreview">

</div>
</div>
<!-- End View Report --></div>
</div>
<div class="dialog dialog_super_wide" id="dialog_expenses" style="width: 1223px; left: 20px; top: 30px; display: none;">
</div>

<!-- close #sticky_footer -->